package com.jackrain.nea.web.model;

import java.io.Serializable;
import java.util.HashMap;

public class UserConfig implements Serializable {

    //表隐藏字段配置
    HashMap<Long,String> hideColumnMap;


    public HashMap getHideColumnMap() {
        return hideColumnMap;
    }

    public void addHideColumn(Long tableId,String hideColumn) {
        if(hideColumnMap == null){
            hideColumnMap = new HashMap<>();
        }
        hideColumnMap.put(tableId,hideColumn);
    }


    public void delHideColumn(Long talbeId) {
        if(hideColumnMap != null){
            hideColumnMap.remove(talbeId);
        }
    }

    public String getHideColumn(Long tableId) {
        if(hideColumnMap != null){
            return hideColumnMap.get(tableId);
        }
        return null;
    }


}
